package com.ggy.tuibi.Schedu;

import cn.hutool.http.HttpResponse;
import cn.hutool.http.HttpUtil;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * @author guoguangyuan
 * @Date 2025/4/5
 */
public class XingWanShiDai {
    public static void main(String[] args) {
        XingWanShiDai service = new XingWanShiDai();
        ExecutorService executorService = Executors.newCachedThreadPool();
        List<Runnable> taskList = new ArrayList<>();
        for (int i = 0; i < 500; i++) {
            taskList.add(service::qiandao);
        }
        for (Runnable runnable : taskList) {
            executorService.submit(runnable);
        }

        executorService.shutdown();
    }


    private void qiandao(){
        Map<String,String> headers = new HashMap<>();
        headers.put("Access-Token","7f40ab837938872268d4522828a9a692");
        headers.put("PlatformType","20");
        headers.put("platform","H5-WEIXIN");
        headers.put("User-Agent","Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36 NetType/WIFI MicroMessenger/7.0.20.1781(0x6700143B) WindowsWechat(0x63090a13) XWEB/8555 Flue");
        headers.put("storeid","10002");
        HttpResponse response = HttpUtil.createPost("https://ling.cjdw.online/api/activity.SignIn/done")
                .addHeaders(headers)
                .execute();
        System.out.println(response.body());
    }
}
